Was reading argument from wrong stack location with recent versions of
bcc. Doing the access from [bp] rather than [sp] is safer as the
former does not change all the time.
Signed-off-by: Keir Fraser <keir@xensource.com>
DX = regs.u.r16.dx;
ASM_START
- sti
-
;; Get the count in eax
- mov bx, sp
SEG SS
- mov ax, _int15_function.CX [bx]
+ mov ax, .int15_function32.CX [bp]
shl eax, #16
SEG SS
- mov ax, _int15_function.DX [bx]
+ mov ax, .int15_function32.DX [bp]
;; convert to numbers of 15usec ticks
mov ebx, #15